import request from '../utils/request.js'


export function login_wxoa(data) {
	return request.get('api/crm/user/auth/login/wxoa', data)
}

export function login_wxmp(data) {
	return request.post('api/crm/user/auth/login/wxmp', data)
}

export function login(data) {
	return request.post('api/crm/user/auth/login', data)
}

export function crmUserInfo(data) {
	return request.get('api/crm/user/auth/info', data)
}

export function changePhone(data) {
	return request.post('api/crm/user/auth/changePhone', data)
}

export function token(data) {
	return request.post('oauth/token?grant_type=client_credentials', data)
}

export function getOpenId(data) {
	return request.get('api/wechat/getOpenId', data)
}

export function dictItemList(data) {
	return request.get('api/sys/dict/item/list', data)
}

